﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using dados;

namespace web
{
    public partial class ResetPassword : System.Web.UI.Page
    {
        public string sUrl = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                //Imovel objImovel = new Imovel();

                //rpImoveis.DataSource = objImovel.Pesquisar(0);
                //rpImoveis.DataBind();
                if (Request.QueryString["Sel"] != null)
                {
                    if (Request.QueryString["Sel"].ToString().Substring(0,3) != "Kit")
                    {
                        sUrl = "Imoveis.aspx?Sel=" + Request.QueryString["Sel"].ToString();
                    }
                    else
                    {
                        sUrl = "kits_natal/kit_natal.aspx";
                    }

                    if (Request.QueryString["Sel"].ToString() == "Kit Todo dia Carambola")
                    {
                        sUrl = "kits_natal/kit_natal1.aspx";
                    }

                    if (Request.QueryString["Sel"].ToString() == "Kit Ekos Guaraná")
                    {
                        sUrl = "kits_natal/kit_natal2.aspx";
                    }

                    if (Request.QueryString["Sel"].ToString() == "Kit Todo dia Damasco")
                    {
                        sUrl = "kits_natal/KitTododiaDamasco.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Sr. N Cedro")
                    {
                        sUrl = "kits_natal/KitSrNCedro.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Sève Pétalas")
                    {
                        sUrl = "kits_natal/KitSevePetalas.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Ekos Frescor de Verão")
                    {
                        sUrl = "kits_natal/KitEkosFrescorVerao.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Faces Secreta")
                    {
                        sUrl = "kits_natal/KitFacesSecreta.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Sr. N")
                    {
                        sUrl = "kits_natal/KitSrN.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Biografia Verão")
                    {
                        sUrl = "kits_natal/KitBiografiaVerao.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Ekos Pitanga Preta")
                    {
                        sUrl = "kits_natal/KitEkosPitangaPreta.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Mamãe Bebê")
                    {
                        sUrl = "kits_natal/KitMamaeBebe.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Humor")
                    {
                        sUrl = "kits_natal/KitHumor.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Amó Amasso")
                    {
                        sUrl = "kits_natal/KitAmoAmasso.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Amó Xodó")
                    {
                        sUrl = "kits_natal/KitAmoXodo.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Kit Maquiagem")
                    {
                        sUrl = "kits_natal/KitMaquiagem.aspx";
                    }
                    if (Request.QueryString["Sel"].ToString() == "Embalagens de Presente")
                    {
                        sUrl = "kits_natal/EmbalagensPresente.aspx";
                    }

                }
                else
                {
                    sUrl = "kits_natal/kit_natal.aspx";
                }
                MenuClass objMenu = new MenuClass();

                xmlDataSource.Data = objMenu.Carregar().GetXml();
                xmlDataSource.DataBind();

            }
        }
    }
}
